<?php
/*
 * inc-studentHome.php
 * Retral/CSCD494 Winter 2009
 * Eastern Washington University
 *
 * File Description:
 * Home page for a student.
 * 
 * Other:
 * IS A STATIC PAGE. Needs to be eventually developed!
 */
 
if (isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] != "" && $_SESSION['roleCode'] == "student")
{
	$greet = $_SESSION['loggedIn'];
	
	echo "<span class=\"header-text\">WELCOME, $greet</span><br>";
?>


		<b>Sample Scores (Placeholder Page)<br>
		
		<table cellpadding="5"  border="1">
			<tr>
				<td><strong> Exam ID </strong></td>
				<td><strong> Date Taken </strong></td>
				<td><strong> Result </strong></td>
			</tr>
			<tr>
				<td> <a href="#">0000001 <a> </td>
				<td> 02/16/2009 </td>
				<td> Pass </td>
			</tr>
		</table>
		
		<a href="logout.php">Logout</a><br>
		<!--Student exam scores should be displayed here -->
		<small>Note this is a static page. Does not connect to db.</small>

<?php	
}
else
{
	echo "Invalid Credentials";
	header("Location:index.php?page=login&ld=1"); //go to student login
}
?>
